import request from '@/utils/request'

/** billCreate */
export function billCreate (data) {
  return request({
    url: '/pay/bill/create',
    method: 'post',
    data
  })
}

/** 账单支付 */
export function billPay(data) {
  return request({
    url: '/pay/bill/pay',
    method: 'post',
    data
  })
}

/** 查询账单是否支付成功 */
export function billQuery(id) {
  return request({
    url: `/pay/bill/query?paymentBatchId=${id}`,
    method: 'post',
  })
}